/*
 * @Author: 常安民 changanmin1@crdigital.com.cn
 * @Date: 2024-05-06 09:08:09
 * @LastEditors: 常安民 changanmin1@crdigital.com.cn
 * @LastEditTime: 2024-07-26 18:19:59
 * @FilePath: /console-web/config/proxyConfig.js
 * @Description: 
 * @email:anmin@foxmail.com
 * Copyright (c) 2024 by 华润数科控股有限公司/常安民, All Rights Reserved. 
 */ 
// const proxyUrl = "https://console-trip.test.crdigital.com.cn"
 
const proxyOther = 'http://10.133.77.39:8001/'
const proxyEmployee = 'http://10.133.77.39:8890/'
// const proxyMgt = "http://127.0.1.1:8089/"
// const proxyUrl = "https://console-trip.test.crdigital.com.cn" 
// const proxyMgt = "http://127.0.1.1:8089/"
// const  proxyOther = 'http://10.133.77.39:8001';
// const  proxyOther = 'http://127.0.0.1:8089';
// const setting ="http://10.133.77.39:8001";
module.exports = {
  // '^/apis/mgt/*': {
  //   // ripples-trip.test.crdigital.com.cn
  //   target: proxyOther, // sit 
  //   pathRewrite: { '^/apis/mgt': '' },
  //   secure: false,
  //   logLevel: 'debug',
  //   changeOrigin: true
  // }, 
   // application/getApplicationLoginType?service=1
  '^/apis/mgt/*': { 
    target: proxyOther, // sit
    pathRewrite: { '^/apis/mgt/': '/mgt/' },
    secure: false,
    logLevel: 'debug',
    changeOrigin: true
  },
  '^/apis/employee/*': { 
    target: proxyEmployee, // sit
    pathRewrite: { '^/apis/employee/': '' },
    secure: false,
    logLevel: 'debug',
    changeOrigin: true
  },
  '^/apis/setting/*': { 
    target: proxyOther, // sit
    pathRewrite: { '^/apis/setting/': '/setting/' },
    secure: false,
    logLevel: 'debug',
    changeOrigin: true
  },
  '^/apis/*': {
    // ripples-trip.test.crdigital.com.cn
    target: proxyOther, // sit 
    pathRewrite: { '^/apis': '' },
    secure: false,
    logLevel: 'debug',
    changeOrigin: true
  },
  '/online-service/*': {
    logLevel: 'debug',
    target: 'http://online-service-dev.dadp-pres.crcloud.com',
    // pathRewrite: { '^/online-service': '' },
    // headers: {
    //   host: 'online-form-dev.dadp-pres.crcloud.com'
    // },
    secure: false,
    changeOrigin: false
  },
  '/static/modeler/apis/*': {
    target: 'http://flowable-modeler-dev.dadp-pres.crcloud.com/flowable-modeler', //服务器
    //target: 'http://10.54.24.92:30003/flowable-modeler', //于
    pathRewrite: { '^/static/modeler/apis': '' },
    secure: false,
    changeOrigin: true
  },
  '/static/task/apis/*': {
    target: 'http://flowable-task-dev.dadp-pres.crcloud.com/flowable-task', // 服务器
    //target: 'http://10.54.24.92:30002/flowable-task', // 于海宁
    pathRewrite: { '^/static/task/apis': '' },
    secure: false,
    changeOrigin: true
  },
  '/static/admin/apis/*': {
    target: 'http://flowable-admin-dev.dadp-pres.crcloud.com/flowable-admin', // 服务器
    //target: 'http://10.54.24.92:30002/flowable-task', // 于海宁
    pathRewrite: { '^/static/admin/apis': '' },
    secure: false,
    changeOrigin: true
  }
}
